
        <!DOCTYPE html>
        <html>
        <head>
        <meta charset="UTF-8">
        <#assign base=request.contextPath  />

        <title>欢迎</title>
            <base id="basePath" href="${base}">
            <script type="text/javascript" src="${base}/js/ztree/jquery-1.4.4.min.js"></script>
        </head>
        <body>
        <input  type="text" id="username"/>
        <input  type="text" id="pass"/>
         <button onclick="login()" type="button">登陆</button>


        </body>
        <script>
     function login(){
         var list= [{
             "username":"2",
             "password":"2"
         },{
             "username":"2",
             "password":"2"
         }];

         alert(list);
         $.ajax({
             type : "POST", //提交方式
             url : "${base}/alreadyAppointment/bathInsert",//路径
             data :{"produc":JSON.stringify(list)},

             success : function(data) {//返回数据根据结果进行相应的处理
               alert(data);
            }
         });
     }
        </script>
        </html>